package com.company;

import java.io.*;
import java.util.Scanner;

public class Homework02 {
    public static void write(String[] str) {
        int year =1998;
        for(int i =0;i<str.length;i++){
            str[i]=str[i]+"/"+year;
            year=year-4;
        }
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("worldcup.txt"));
        for (int i=0;i<str.length;i++){
                bw.write(str[i]);
                bw.newLine();
        }
        bw.close();
    }
    public static void read()throws IOException{
        Scanner scr = new Scanner(System.in);
        String s = scr.next();
        BufferedReader br = new BufferedReader(new FileReader("worldcup.txt"));
        boolean flag = false;
        String str = null;
        String strarr[] = new String[2];
        while ((str=br.readLine())!=null){
            strarr = str.split("/",2);
            if(strarr[1].equals(s)){
                flag=true;
                System.out.println(strarr[0]);
            }
        }if(!flag){
            System.out.println("没有举办世界杯");
            br.close();
        }
    }

    public static void main(String[] args)throws Exception {
        String str[] = {"法国","巴西","意大利","西班牙","德国"};
        write(str);
        read();
    }

}
